# @Version : 1.0
# @Author  : wxz
# @File    : user_model.py
# @Time    : 2025/5/30 16:18
# @Describe: 描述...
from datetime import datetime
from typing import Optional

from sqlmodel import Field

from apps.user.data_model.base_sql_model import BaseSQLModel


class User(BaseSQLModel, table=True):

    __tablename__ = 'user'

    username: str = Field(description="用户名", max_length=50)

    password: str = Field(description="密码", max_length=100)

    phone: Optional[int] = Field(description="手机号", default=0)

    status: int = Field(description="用户状态:0-可用，1-不可用", max_length=1, default=0)















